package insat.ia.main;
import java.awt.List;
import java.util.ArrayList;

public class Regle {
	private int numero;
	private Premisse premisse;  
	private String conclusion;	
        
        
	public Regle() {
		  premisse = new Premisse();  
		  conclusion = new String();	
	}
	public int getNumero() {
		return numero;
	}
	public void setNumero(int numero) {
		this.numero = numero;
	}
	public Premisse getPremisse() {
		return premisse;
	}
	public void setPremisse(Premisse premisse) {
		this.premisse = premisse;
	}
	public void setPremisseInList(String p ) {
		this.premisse.add(p);
	}
	public String getConclusion() {
		return conclusion;
	}
	public void setConclusion(String conclusion) {
		this.conclusion = conclusion;
	}
	@Override
	public String toString() {
		return "R" + numero + "     si " + premisse.toString()
				+ " alors " + conclusion + "";
	} 		
}



